﻿using GraphProcessor;
using IQIGame.Onigao.Logic;
using UnityEngine;

namespace IQIGame.Onigao.GamePlay.Editors
{
    [System.Serializable, NodeMenuItem(LevelEditorConst.Level + "/" + LevelEditorConst.Trigger + "/" + LevelEditorConst.ElevatorArrive, typeof(LevelServiceGraph))]
    public class LevelServiceTriggerNode_ElevatorArrive : LevelServiceTriggerNode
    {
        protected override ServiceTriggerType triggerType => ServiceTriggerType.ElevatorArrive;

        protected override string triggerName => LevelEditorConst.ElevatorArrive;
        [InspectorName("触发层数"), Tooltip("从0层开始计数")]
        public int floor;
        
        protected override LevelServiceCustomConfig CreateConfig()
        {
            return new LevelServiceTriggerCustom_ElevatorArrive()
            {
                floor = this.floor
            };
        }
    }
}